/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * VentanaAvataresFemeninos.java
 *
 * Created on 11/08/2010, 09:16:06 AM
 */

package ventanas;
import javax.swing.JFrame;
import logicaClient.ComunicacionClient;
/**
 *
 * @author Aiskel
 */
public class VentanaAvataresFemeninos extends javax.swing.JFrame {

    /** Creates new form VentanaAvataresFemeninos */
    public VentanaAvataresFemeninos() {
        initComponents();
    }

    public void setVentanaPadre4(JFrame VentanaPadre4) {
        this.VentanaPadre4 = VentanaPadre4;
    }



    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        GrupoAvataresF = new javax.swing.ButtonGroup();
        jLAvatarTituloF = new javax.swing.JLabel();
        jBAceptar = new javax.swing.JButton();
        jLAvatarF2 = new javax.swing.JLabel();
        jBAtras = new javax.swing.JButton();
        jRBAvatarF1 = new javax.swing.JRadioButton();
        jRBAvatarF5 = new javax.swing.JRadioButton();
        jRBAvatarF6 = new javax.swing.JRadioButton();
        jLAvatarF6 = new javax.swing.JLabel();
        jLAvatarF5 = new javax.swing.JLabel();
        jRBAvatarF3 = new javax.swing.JRadioButton();
        jLAvatarF4 = new javax.swing.JLabel();
        jRBAvatarF4 = new javax.swing.JRadioButton();
        jRBAvatarF2 = new javax.swing.JRadioButton();
        jLAvatarF3 = new javax.swing.JLabel();
        jLAvatarF1 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Avatares Masculinos");
        setName("VentanaAvataresMasculinos"); // NOI18N

        jLAvatarTituloF.setFont(new java.awt.Font("Kristen ITC", 1, 10));
        jLAvatarTituloF.setForeground(new java.awt.Color(153, 0, 0));
        jLAvatarTituloF.setText("Seleccione el avatar con el cual desea crear su cuenta en iDomino");
        jLAvatarTituloF.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jLAvatarTituloF.setName(""); // NOI18N

        jBAceptar.setText("Aceptar");
        jBAceptar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBAceptarActionPerformed(evt);
            }
        });

        jLAvatarF2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/presentacion/symbiote-angel-tux-8611.png"))); // NOI18N
        jLAvatarF2.setText("jLabel8");

        jBAtras.setText("Atras");
        jBAtras.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBAtrasActionPerformed(evt);
            }
        });

        GrupoAvataresF.add(jRBAvatarF1);
        jRBAvatarF1.setText("jRadioButton1");
        jRBAvatarF1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRBAvatarF1ActionPerformed(evt);
            }
        });

        GrupoAvataresF.add(jRBAvatarF5);
        jRBAvatarF5.setText("jRadioButton1");
        jRBAvatarF5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRBAvatarF5ActionPerformed(evt);
            }
        });

        GrupoAvataresF.add(jRBAvatarF6);
        jRBAvatarF6.setText("jRadioButton1");
        jRBAvatarF6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRBAvatarF6ActionPerformed(evt);
            }
        });

        jLAvatarF6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/presentacion/logo_lea-linux.png"))); // NOI18N
        jLAvatarF6.setText("jLabel8");

        jLAvatarF5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/presentacion/tux12.png"))); // NOI18N
        jLAvatarF5.setText("jLabel8");

        GrupoAvataresF.add(jRBAvatarF3);
        jRBAvatarF3.setText("jRadioButton1");
        jRBAvatarF3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRBAvatarF3ActionPerformed(evt);
            }
        });

        jLAvatarF4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/presentacion/tux-7-10.png"))); // NOI18N
        jLAvatarF4.setText("jLabel8");

        GrupoAvataresF.add(jRBAvatarF4);
        jRBAvatarF4.setText("jRadioButton1");
        jRBAvatarF4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRBAvatarF4ActionPerformed(evt);
            }
        });

        GrupoAvataresF.add(jRBAvatarF2);
        jRBAvatarF2.setText("jRadioButton1");
        jRBAvatarF2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRBAvatarF2ActionPerformed(evt);
            }
        });

        jLAvatarF3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/presentacion/avatar10384_2.gif"))); // NOI18N

        jLAvatarF1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/presentacion/keen-misstux-8280.png"))); // NOI18N
        jLAvatarF1.setText("jLabel8");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(39, 39, 39)
                .addComponent(jLAvatarTituloF, javax.swing.GroupLayout.PREFERRED_SIZE, 418, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(185, 185, 185)
                .addComponent(jLAvatarF5, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 64, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLAvatarF3, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLAvatarF6, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(30, 30, 30))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(371, Short.MAX_VALUE)
                .addComponent(jRBAvatarF6, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(97, 97, 97))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(271, Short.MAX_VALUE)
                .addComponent(jBAceptar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jBAtras, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(61, 61, 61))
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(26, 26, 26)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLAvatarF4, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLAvatarF1, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGroup(layout.createSequentialGroup()
                                    .addGap(37, 37, 37)
                                    .addComponent(jRBAvatarF4, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(layout.createSequentialGroup()
                                    .addGap(86, 86, 86)
                                    .addComponent(jRBAvatarF5, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGroup(layout.createSequentialGroup()
                                    .addGap(44, 44, 44)
                                    .addComponent(jLAvatarF2, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGap(190, 190, 190))
                        .addGroup(layout.createSequentialGroup()
                            .addGap(38, 38, 38)
                            .addComponent(jRBAvatarF1, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(135, 135, 135)
                            .addComponent(jRBAvatarF2, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(154, 154, 154)
                            .addComponent(jRBAvatarF3, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLAvatarTituloF)
                .addGap(36, 36, 36)
                .addComponent(jLAvatarF3)
                .addGap(59, 59, 59)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLAvatarF5)
                    .addComponent(jLAvatarF6))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jRBAvatarF6)
                .addGap(29, 29, 29)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jBAceptar)
                    .addComponent(jBAtras))
                .addGap(175, 175, 175))
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(48, 48, 48)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLAvatarF1)
                        .addComponent(jLAvatarF2))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jRBAvatarF1)
                        .addComponent(jRBAvatarF2)
                        .addComponent(jRBAvatarF3))
                    .addGap(6, 6, 6)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(jLAvatarF4)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jRBAvatarF4))
                        .addComponent(jRBAvatarF5))
                    .addContainerGap(232, Short.MAX_VALUE)))
        );

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-489)/2, (screenSize.height-466)/2, 489, 466);
    }// </editor-fold>//GEN-END:initComponents

    private void jBAceptarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBAceptarActionPerformed
        // TODO add your handling code here:
        this.setVisible(false);
        VentanaPadre4.setVisible(true);
}//GEN-LAST:event_jBAceptarActionPerformed

    private void jBAtrasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBAtrasActionPerformed
        // TODO add your handling code here:
        this.dispose();
        VentanaPadre4.setVisible(true);
}//GEN-LAST:event_jBAtrasActionPerformed

    private void jRBAvatarF1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRBAvatarF1ActionPerformed
        // TODO add your handling code here:
        VentanaRegistro.setIDavatar(7);
        path = ComunicacionClient.concatenarPathImagen("keen-misstux-8280.png");
        System.out.println("path... " + path);
        VentanaRegistro.setPATHavatar(path);
    }//GEN-LAST:event_jRBAvatarF1ActionPerformed

    private void jRBAvatarF2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRBAvatarF2ActionPerformed
        // TODO add your handling code here:
        VentanaRegistro.setIDavatar(8);
        path = ComunicacionClient.concatenarPathImagen("symbiote-angel-tux-8611.png");
        VentanaRegistro.setPATHavatar(path);
    }//GEN-LAST:event_jRBAvatarF2ActionPerformed

    private void jRBAvatarF3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRBAvatarF3ActionPerformed
        // TODO add your handling code here:
        VentanaRegistro.setIDavatar(9);
        path = ComunicacionClient.concatenarPathImagen("avatar10384_2.gif");
        VentanaRegistro.setPATHavatar(path);
    }//GEN-LAST:event_jRBAvatarF3ActionPerformed

    private void jRBAvatarF4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRBAvatarF4ActionPerformed
        // TODO add your handling code here:
        VentanaRegistro.setIDavatar(10);
        path = ComunicacionClient.concatenarPathImagen("tux-7-10.png");
        VentanaRegistro.setPATHavatar(path);
    }//GEN-LAST:event_jRBAvatarF4ActionPerformed

    private void jRBAvatarF5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRBAvatarF5ActionPerformed
        // TODO add your handling code here:
       VentanaRegistro.setIDavatar(11);
       path = ComunicacionClient.concatenarPathImagen("tux12.png");
        VentanaRegistro.setPATHavatar(path);
    }//GEN-LAST:event_jRBAvatarF5ActionPerformed

    private void jRBAvatarF6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRBAvatarF6ActionPerformed
        // TODO add your handling code here:
        VentanaRegistro.setIDavatar(12);
        path = ComunicacionClient.concatenarPathImagen("logo_lea-linux.png");
        VentanaRegistro.setPATHavatar(path);
    }//GEN-LAST:event_jRBAvatarF6ActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new VentanaAvataresFemeninos().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup GrupoAvataresF;
    private javax.swing.JButton jBAceptar;
    private javax.swing.JButton jBAtras;
    private javax.swing.JLabel jLAvatarF1;
    private javax.swing.JLabel jLAvatarF2;
    private javax.swing.JLabel jLAvatarF3;
    private javax.swing.JLabel jLAvatarF4;
    private javax.swing.JLabel jLAvatarF5;
    private javax.swing.JLabel jLAvatarF6;
    private javax.swing.JLabel jLAvatarTituloF;
    private javax.swing.JRadioButton jRBAvatarF1;
    private javax.swing.JRadioButton jRBAvatarF2;
    private javax.swing.JRadioButton jRBAvatarF3;
    private javax.swing.JRadioButton jRBAvatarF4;
    private javax.swing.JRadioButton jRBAvatarF5;
    private javax.swing.JRadioButton jRBAvatarF6;
    // End of variables declaration//GEN-END:variables

    private JFrame VentanaPadre4;

    String path = "";
    
}
